# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-flask-autoindex
_pkgname=flask-autoindex
pkgver=0.6.4
pkgrel=0
pkgdesc="Flask autoindex"
url="https://pypi.python.org/pypi/Flask-AutoIndex"
arch="noarch"
license="MIT"
# Missing 'flask-silk'
depends="python3 py3-flask py3-future"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/general03/flask-autoindex/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-flask-autoindex" # Backwards compatibility
provides="py-flask-autoindex=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="57888c2349c5dfbb2d567f92a377eaee7f011418cb8fcbf0bda8f063f1083ea5b436b52cb65ccf1b6f40c2db104b876e2da33a9d5a07b46d725a4579c4eaf2bd  py3-flask-autoindex-0.6.4.tar.gz"
